package org.learn.test;

public class ArrayAssign {
    public static void main(String[] args) {
        int n1 = 10;
        int n2 = n1;

        n2 = 80;
        System.out.println("n1=" + n1);
        System.out.println("n2=" + n2);

        //数组的赋值是地址；不是拷贝
        int[] arr1 = {1,2,3};
        int[] arr2 = arr1;
        arr2[0] = 0;
        System.out.println(arr1[0]);
    }
}
